<?php use_helper('Picasa') ?>

<?php $album = loadAlbum($BolaoAlbum->getPicasaId()) ?>

<div class="content_box">
  <h1><?php echo $album->getTitle() ?></h1>
  <div class="right_corner">
<?php
  if($sf_user->isAuthenticated() && $BolaoAlbum->canRemove($sf_user))
    echo link_to('Remover', 'album/delete?id='.$BolaoAlbum->getId(), array('class' => 'contentbox_btn', 'method' => 'delete', 'confirm' => 'Voc&ecirc; tem certeza?'));
?>
  </div>
  <div class="content">
    <p>(clique nas imagens para aument&aacute;-las)</p>
    <div id="gallery">
      <ul>
<?php foreach ($album->getImages() as $image): ?>
        <li>
          <a href="<?php echo $image->getContent() ?>" title="<?php echo $image->getDescription() ?>"><img src="<?php echo $image->getMediumThumb() ?>" /></a>
        </li>
<?php endforeach; ?>
      </ul>
    </div>
  </div>
</div>
